# 生成三叉

scoreboard players set fork_summon mt_index 3
scoreboard players operation fork_summon mt_index *= @s mt_index

# 微调生成方向
function mountain:gen/common/rnd/random
# tp @s ~ ~ ~ ~-30 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~-25 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~-30 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~-35 0
execute if score cur mt_index matches 3.. if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~-60 0
execute if score cur mt_index matches 3.. if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~-50 0
execute if score cur mt_index matches 3.. if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~-40 0
function mountain:gen/fork/summon_toward

scoreboard players add fork_summon mt_index 1
function mountain:gen/common/rnd/random
# tp @s ~ ~ ~ ~ 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~-10 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~0 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~10 0
execute if score cur mt_index matches 3.. if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~20 0
execute if score cur mt_index matches 3.. if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~0 0
execute if score cur mt_index matches 3.. if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~-20 0
function mountain:gen/fork/summon_toward

scoreboard players add fork_summon mt_index 1
function mountain:gen/common/rnd/random
# tp @s ~ ~ ~ ~60 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~25 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~30 0
execute if score cur mt_index matches 1..2 if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~35 0
execute if score cur mt_index matches 3.. if score result mt_random matches 0..3 run tp @s ~ ~ ~ ~40 0
execute if score cur mt_index matches 3.. if score result mt_random matches 4..7 run tp @s ~ ~ ~ ~50 0
execute if score cur mt_index matches 3.. if score result mt_random matches 8..11 run tp @s ~ ~ ~ ~60 0
function mountain:gen/fork/summon_toward


function mountain:gen/common/rnd/random